home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / QuakeTools / configure < prev    next >
Encoding:
Text File  |  1998-06-13  |  75.5 KB  |  2,554 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. guidedir='${prefix}/guide'
  48. psdir='${prefix}/ps'
  49. dvidir='${prefix}/dvi'
  50. mandir='${prefix}/man'
  51.  
  52. # Initialize some other variables.
  53. subdirs=
  54. MFLAGS= MAKEFLAGS=
  55. # Maximum number of lines to put in a shell here document.
  56. ac_max_here_lines=12
  57.  
  58. ac_prev=
  59. for ac_option
  60. do
  61.  
  62.   # If the previous option needs an argument, assign it.
  63.   if test -n "$ac_prev"; then
  64.     eval "$ac_prev=\$ac_option"
  65.     ac_prev=
  66.     continue
  67.   fi
  68.  
  69.   case "$ac_option" in
  70.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  71.   *) ac_optarg= ;;
  72.   esac
  73.  
  74.   # Accept the important Cygnus configure options, so we can diagnose typos.
  75.  
  76.   case "$ac_option" in
  77.  
  78.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  79.     ac_prev=bindir ;;
  80.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  81.     bindir="$ac_optarg" ;;
  82.  
  83.   -build | --build | --buil | --bui | --bu)
  84.     ac_prev=build ;;
  85.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  86.     build="$ac_optarg" ;;
  87.  
  88.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  89.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  90.     ac_prev=cache_file ;;
  91.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  92.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  93.     cache_file="$ac_optarg" ;;
  94.  
  95.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  96.     ac_prev=datadir ;;
  97.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  98.   | --da=*)
  99.     datadir="$ac_optarg" ;;
  100.  
  101.   -disable-* | --disable-*)
  102.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  103.     # Reject names that are not valid shell variable names.
  104.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  105.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  106.     fi
  107.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  108.     eval "enable_${ac_feature}=no" ;;
  109.  
  110.   -enable-* | --enable-*)
  111.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  112.     # Reject names that are not valid shell variable names.
  113.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  114.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  115.     fi
  116.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  117.     case "$ac_option" in
  118.       *=*) ;;
  119.       *) ac_optarg=yes ;;
  120.     esac
  121.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  122.  
  123.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  124.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  125.   | --exec | --exe | --ex)
  126.     ac_prev=exec_prefix ;;
  127.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  128.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  129.   | --exec=* | --exe=* | --ex=*)
  130.     exec_prefix="$ac_optarg" ;;
  131.  
  132.   -gas | --gas | --ga | --g)
  133.     # Obsolete; use --with-gas.
  134.     with_gas=yes ;;
  135.  
  136.   -help | --help | --hel | --he)
  137.     # Omit some internal or obsolete options to make the list less imposing.
  138.     # This message is too long to be a string in the A/UX 3.1 sh.
  139.     cat << EOF
  140. Usage: configure [options] [host]
  141. Options: [defaults in brackets after descriptions]
  142. Configuration:
  143.   --cache-file=FILE       cache test results in FILE
  144.   --help                  print this message
  145.   --no-create             do not create output files
  146.   --quiet, --silent       do not print \`checking...' messages
  147.   --version               print the version of autoconf that created configure
  148. Directory and file names:
  149.   --prefix=PREFIX         install architecture-independent files in PREFIX
  150.                           [$ac_default_prefix]
  151.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  152.                           [same as prefix]
  153.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  154.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  155.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  156.   --datadir=DIR           read-only architecture-independent data in DIR
  157.                           [PREFIX/share]
  158.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  159.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  160.                           [PREFIX/com]
  161.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  162.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  163.   --includedir=DIR        C header files in DIR [PREFIX/include]
  164.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  165.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  166.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  167.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  168.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  169.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  170.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  171.   --program-prefix=PREFIX prepend PREFIX to installed program names
  172.   --program-suffix=SUFFIX append SUFFIX to installed program names
  173.   --program-transform-name=PROGRAM
  174.                           run sed PROGRAM on installed program names
  175. EOF
  176.     cat << EOF
  177. Host type:
  178.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  179.   --host=HOST             configure for HOST [guessed]
  180.   --target=TARGET         configure for TARGET [TARGET=HOST]
  181. Features and packages:
  182.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  183.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  184.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  185.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  186.   --x-includes=DIR        X include files are in DIR
  187.   --x-libraries=DIR       X library files are in DIR
  188. EOF
  189.     if test -n "$ac_help"; then
  190.       echo "--enable and --with options recognized:$ac_help"
  191.     fi
  192.     exit 0 ;;
  193.  
  194.   -host | --host | --hos | --ho)
  195.     ac_prev=host ;;
  196.   -host=* | --host=* | --hos=* | --ho=*)
  197.     host="$ac_optarg" ;;
  198.  
  199.   -includedir | --includedir | --includedi | --included | --include \
  200.   | --includ | --inclu | --incl | --inc)
  201.     ac_prev=includedir ;;
  202.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  203.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  204.     includedir="$ac_optarg" ;;
  205.  
  206.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  207.     ac_prev=infodir ;;
  208.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  209.     infodir="$ac_optarg" ;;
  210.  
  211.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  212.    ac_prev=guidedir ;;
  213.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  214.  
  215.  -psdir | --psdir | --psdi | --psd | --ps)
  216.    ac_prev=psdir ;;
  217.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  218.  
  219.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  220.    ac_prev=dvidir ;;
  221.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  222.  
  223.   -libdir | --libdir | --libdi | --libd)
  224.     ac_prev=libdir ;;
  225.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  226.     libdir="$ac_optarg" ;;
  227.  
  228.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  229.   | --libexe | --libex | --libe)
  230.     ac_prev=libexecdir ;;
  231.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  232.   | --libexe=* | --libex=* | --libe=*)
  233.     libexecdir="$ac_optarg" ;;
  234.  
  235.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  236.   | --localstate | --localstat | --localsta | --localst \
  237.   | --locals | --local | --loca | --loc | --lo)
  238.     ac_prev=localstatedir ;;
  239.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  240.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  241.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  242.     localstatedir="$ac_optarg" ;;
  243.  
  244.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  245.     ac_prev=mandir ;;
  246.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  247.     mandir="$ac_optarg" ;;
  248.  
  249.   -nfp | --nfp | --nf)
  250.     # Obsolete; use --without-fp.
  251.     with_fp=no ;;
  252.  
  253.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  254.   | --no-cr | --no-c)
  255.     no_create=yes ;;
  256.  
  257.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  258.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  259.     no_recursion=yes ;;
  260.  
  261.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  262.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  263.   | --oldin | --oldi | --old | --ol | --o)
  264.     ac_prev=oldincludedir ;;
  265.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  266.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  267.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  268.     oldincludedir="$ac_optarg" ;;
  269.  
  270.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  271.     ac_prev=prefix ;;
  272.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  273.     prefix="$ac_optarg" ;;
  274.  
  275.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  276.   | --program-pre | --program-pr | --program-p)
  277.     ac_prev=program_prefix ;;
  278.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  279.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  280.     program_prefix="$ac_optarg" ;;
  281.  
  282.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  283.   | --program-suf | --program-su | --program-s)
  284.     ac_prev=program_suffix ;;
  285.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  286.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  287.     program_suffix="$ac_optarg" ;;
  288.  
  289.   -program-transform-name | --program-transform-name \
  290.   | --program-transform-nam | --program-transform-na \
  291.   | --program-transform-n | --program-transform- \
  292.   | --program-transform | --program-transfor \
  293.   | --program-transfo | --program-transf \
  294.   | --program-trans | --program-tran \
  295.   | --progr-tra | --program-tr | --program-t)
  296.     ac_prev=program_transform_name ;;
  297.   -program-transform-name=* | --program-transform-name=* \
  298.   | --program-transform-nam=* | --program-transform-na=* \
  299.   | --program-transform-n=* | --program-transform-=* \
  300.   | --program-transform=* | --program-transfor=* \
  301.   | --program-transfo=* | --program-transf=* \
  302.   | --program-trans=* | --program-tran=* \
  303.   | --progr-tra=* | --program-tr=* | --program-t=*)
  304.     program_transform_name="$ac_optarg" ;;
  305.  
  306.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  307.   | -silent | --silent | --silen | --sile | --sil)
  308.     silent=yes ;;
  309.  
  310.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  311.     ac_prev=sbindir ;;
  312.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  313.   | --sbi=* | --sb=*)
  314.     sbindir="$ac_optarg" ;;
  315.  
  316.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  317.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  318.   | --sharedst | --shareds | --shared | --share | --shar \
  319.   | --sha | --sh)
  320.     ac_prev=sharedstatedir ;;
  321.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  322.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  323.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  324.   | --sha=* | --sh=*)
  325.     sharedstatedir="$ac_optarg" ;;
  326.  
  327.   -site | --site | --sit)
  328.     ac_prev=site ;;
  329.   -site=* | --site=* | --sit=*)
  330.     site="$ac_optarg" ;;
  331.  
  332.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  333.     ac_prev=srcdir ;;
  334.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  335.     srcdir="$ac_optarg" ;;
  336.  
  337.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  338.   | --syscon | --sysco | --sysc | --sys | --sy)
  339.     ac_prev=sysconfdir ;;
  340.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  341.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  342.     sysconfdir="$ac_optarg" ;;
  343.  
  344.   -target | --target | --targe | --targ | --tar | --ta | --t)
  345.     ac_prev=target ;;
  346.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  347.     target="$ac_optarg" ;;
  348.  
  349.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  350.     verbose=yes ;;
  351.  
  352.   -version | --version | --versio | --versi | --vers)
  353.     echo "configure generated by autoconf version 2.12"
  354.     exit 0 ;;
  355.  
  356.   -with-* | --with-*)
  357.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  358.     # Reject names that are not valid shell variable names.
  359.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  360.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  361.     fi
  362.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  363.     case "$ac_option" in
  364.       *=*) ;;
  365.       *) ac_optarg=yes ;;
  366.     esac
  367.     eval "with_${ac_package}='$ac_optarg'" ;;
  368.  
  369.   -without-* | --without-*)
  370.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  371.     # Reject names that are not valid shell variable names.
  372.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  373.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  374.     fi
  375.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  376.     eval "with_${ac_package}=no" ;;
  377.  
  378.   --x)
  379.     # Obsolete; use --with-x.
  380.     with_x=yes ;;
  381.  
  382.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  383.   | --x-incl | --x-inc | --x-in | --x-i)
  384.     ac_prev=x_includes ;;
  385.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  386.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  387.     x_includes="$ac_optarg" ;;
  388.  
  389.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  390.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  391.     ac_prev=x_libraries ;;
  392.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  393.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  394.     x_libraries="$ac_optarg" ;;
  395.  
  396.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  397.     ;;
  398.  
  399.   *)
  400.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  401.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  402.     fi
  403.     if test "x$nonopt" != xNONE; then
  404.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  405.     fi
  406.     nonopt="$ac_option"
  407.     ;;
  408.  
  409.   esac
  410. done
  411.  
  412. if test -n "$ac_prev"; then
  413.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  414. fi
  415.  
  416. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  417.  
  418. # File descriptor usage:
  419. # 0 standard input
  420. # 1 file creation
  421. # 2 errors and warnings
  422. # 3 some systems may open it to /dev/tty
  423. # 4 used on the Kubota Titan
  424. # 6 checking for... messages and results
  425. # 5 compiler messages saved in config.log
  426. if test "$silent" = yes; then
  427.   exec 6>/dev/null
  428. else
  429.   exec 6>&1
  430. fi
  431. exec 5>./config.log
  432.  
  433. echo "\
  434. This file contains any messages produced by compilers while
  435. running configure, to aid debugging if configure makes a mistake.
  436. " 1>&5
  437.  
  438. # Strip out --no-create and --no-recursion so they do not pile up.
  439. # Also quote any args containing shell metacharacters.
  440. ac_configure_args=
  441. for ac_arg
  442. do
  443.   case "$ac_arg" in
  444.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  445.   | --no-cr | --no-c) ;;
  446.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  447.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  448.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  449.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  450.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  451.   esac
  452. done
  453.  
  454. # NLS nuisances.
  455. # Only set these to C if already set.  These must not be set unconditionally
  456. # because not all systems understand e.g. LANG=C (notably SCO).
  457. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  458. # Non-C LC_CTYPE values break the ctype check.
  459. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  460. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  461. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  462. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  463.  
  464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  465. rm -rf conftest* confdefs.h
  466. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  467. echo > confdefs.h
  468.  
  469. # A filename unique to this package, relative to the directory that
  470. # configure is in, which we can look for to find out if srcdir is correct.
  471. ac_unique_file=./src/libqsys/generic.c
  472.  
  473. # Find the source files, if location was not specified.
  474. if test -z "$srcdir"; then
  475.   ac_srcdir_defaulted=yes
  476.   # Try the directory containing this script, then its parent.
  477.   ac_prog=$0
  478.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  479.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  480.   srcdir=$ac_confdir
  481.   if test ! -r $srcdir/$ac_unique_file; then
  482.     srcdir=..
  483.   fi
  484. else
  485.   ac_srcdir_defaulted=no
  486. fi
  487. if test ! -r $srcdir/$ac_unique_file; then
  488.   if test "$ac_srcdir_defaulted" = yes; then
  489.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  490.   else
  491.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  492.   fi
  493. fi
  494. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  495.  
  496. # Prefer explicitly selected file to automatically selected ones.
  497. if test -z "$CONFIG_SITE"; then
  498.   if test "x$prefix" != xNONE; then
  499.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  500.   else
  501.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  502.   fi
  503. fi
  504. for ac_site_file in $CONFIG_SITE; do
  505.   if test -r "$ac_site_file"; then
  506.     echo "loading site script $ac_site_file"
  507.     . "$ac_site_file"
  508.   fi
  509. done
  510.  
  511. if test -r "$cache_file"; then
  512.   echo "loading cache $cache_file"
  513.   . $cache_file
  514. else
  515.   echo "creating cache $cache_file"
  516.   > $cache_file
  517. fi
  518.  
  519. ac_ext=c
  520. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  521. ac_cpp='$CPP $CPPFLAGS'
  522. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  523. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  524. cross_compiling=$ac_cv_prog_cc_cross
  525.  
  526. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  527.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  528.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  529.     ac_n= ac_c='
  530. ' ac_t='    '
  531.   else
  532.     ac_n=-n ac_c= ac_t=
  533.   fi
  534. else
  535.   ac_n= ac_c='\c' ac_t=
  536. fi
  537.  
  538.  
  539.  
  540. ac_aux_dir=
  541. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  542.   if test -f $ac_dir/install-sh; then
  543.     ac_aux_dir=$ac_dir
  544.     ac_install_sh="$ac_aux_dir/install-sh -c"
  545.     break
  546.   elif test -f $ac_dir/install.sh; then
  547.     ac_aux_dir=$ac_dir
  548.     ac_install_sh="$ac_aux_dir/install.sh -c"
  549.     break
  550.   fi
  551. done
  552. if test -z "$ac_aux_dir"; then
  553.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  554. fi
  555. ac_config_guess=$ac_aux_dir/config.guess
  556. ac_config_sub=$ac_aux_dir/config.sub
  557. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  558.  
  559.  
  560. # Do some error checking and defaulting for the host and target type.
  561. # The inputs are:
  562. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  563. #
  564. # The rules are:
  565. # 1. You are not allowed to specify --host, --target, and nonopt at the
  566. #    same time.
  567. # 2. Host defaults to nonopt.
  568. # 3. If nonopt is not specified, then host defaults to the current host,
  569. #    as determined by config.guess.
  570. # 4. Target and build default to nonopt.
  571. # 5. If nonopt is not specified, then target and build default to host.
  572.  
  573. # The aliases save the names the user supplied, while $host etc.
  574. # will get canonicalized.
  575. case $host---$target---$nonopt in
  576. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  577. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  578. esac
  579.  
  580.  
  581. # Make sure we can run config.sub.
  582. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  583. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  584. fi
  585.  
  586. echo $ac_n "checking host system type""... $ac_c" 1>&6
  587. echo "configure:588: checking host system type" >&5
  588.  
  589. host_alias=$host
  590. case "$host_alias" in
  591. NONE)
  592.   case $nonopt in
  593.   NONE)
  594.     if host_alias=`$ac_config_guess`; then :
  595.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  596.     fi ;;
  597.   *) host_alias=$nonopt ;;
  598.   esac ;;
  599. esac
  600.  
  601. host=`$ac_config_sub $host_alias`
  602. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  603. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  604. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  605. echo "$ac_t""$host" 1>&6
  606.  
  607. echo $ac_n "checking target system type""... $ac_c" 1>&6
  608. echo "configure:609: checking target system type" >&5
  609.  
  610. target_alias=$target
  611. case "$target_alias" in
  612. NONE)
  613.   case $nonopt in
  614.   NONE) target_alias=$host_alias ;;
  615.   *) target_alias=$nonopt ;;
  616.   esac ;;
  617. esac
  618.  
  619. target=`$ac_config_sub $target_alias`
  620. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  621. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  622. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  623. echo "$ac_t""$target" 1>&6
  624.  
  625. echo $ac_n "checking build system type""... $ac_c" 1>&6
  626. echo "configure:627: checking build system type" >&5
  627.  
  628. build_alias=$build
  629. case "$build_alias" in
  630. NONE)
  631.   case $nonopt in
  632.   NONE) build_alias=$host_alias ;;
  633.   *) build_alias=$nonopt ;;
  634.   esac ;;
  635. esac
  636.  
  637. build=`$ac_config_sub $build_alias`
  638. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  639. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  640. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  641. echo "$ac_t""$build" 1>&6
  642.  
  643. test "$host_alias" != "$target_alias" &&
  644.   test "$program_prefix$program_suffix$program_transform_name" = \
  645.     NONENONEs,x,x, &&
  646.   program_prefix=${target_alias}-
  647.  
  648. # Extract the first word of "gcc", so it can be a program name with args.
  649. set dummy gcc; ac_word=$2
  650. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  651. echo "configure:652: checking for $ac_word" >&5
  652. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  653.   echo $ac_n "(cached) $ac_c" 1>&6
  654. else
  655.   if test -n "$CC"; then
  656.   ac_cv_prog_CC="$CC" # Let the user override the test.
  657. else
  658.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  659.   for ac_dir in $PATH; do
  660.     test -z "$ac_dir" && ac_dir=.
  661.     if test -f $ac_dir/$ac_word; then
  662.       ac_cv_prog_CC="gcc"
  663.       break
  664.     fi
  665.   done
  666.   IFS="$ac_save_ifs"
  667. fi
  668. fi
  669. CC="$ac_cv_prog_CC"
  670. if test -n "$CC"; then
  671.   echo "$ac_t""$CC" 1>&6
  672. else
  673.   echo "$ac_t""no" 1>&6
  674. fi
  675.  
  676. if test -z "$CC"; then
  677.   # Extract the first word of "bcc", so it can be a program name with args.
  678. set dummy bcc; ac_word=$2
  679. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  680. echo "configure:681: checking for $ac_word" >&5
  681. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  682.   echo $ac_n "(cached) $ac_c" 1>&6
  683. else
  684.   if test -n "$CC"; then
  685.   ac_cv_prog_CC="$CC" # Let the user override the test.
  686. else
  687.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  688.   for ac_dir in $PATH; do
  689.     test -z "$ac_dir" && ac_dir=.
  690.     if test -f $ac_dir/$ac_word; then
  691.       ac_cv_prog_CC="bcc"
  692.       break
  693.     fi
  694.   done
  695.   IFS="$ac_save_ifs"
  696. fi
  697. fi
  698. CC="$ac_cv_prog_CC"
  699. if test -n "$CC"; then
  700.   echo "$ac_t""$CC" 1>&6
  701. else
  702.   echo "$ac_t""no" 1>&6
  703. fi
  704.  
  705. fi
  706. if test -z "$CC"; then
  707.   # Extract the first word of "mwcc", so it can be a program name with args.
  708. set dummy mwcc; ac_word=$2
  709. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  710. echo "configure:711: checking for $ac_word" >&5
  711. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  712.   echo $ac_n "(cached) $ac_c" 1>&6
  713. else
  714.   if test -n "$CC"; then
  715.   ac_cv_prog_CC="$CC" # Let the user override the test.
  716. else
  717.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  718.   for ac_dir in $PATH; do
  719.     test -z "$ac_dir" && ac_dir=.
  720.     if test -f $ac_dir/$ac_word; then
  721.       ac_cv_prog_CC="mwcc"
  722.       break
  723.     fi
  724.   done
  725.   IFS="$ac_save_ifs"
  726. fi
  727. fi
  728. CC="$ac_cv_prog_CC"
  729. if test -n "$CC"; then
  730.   echo "$ac_t""$CC" 1>&6
  731. else
  732.   echo "$ac_t""no" 1>&6
  733. fi
  734.  
  735. fi
  736. if test -z "$CC"; then
  737.   # Extract the first word of "cc", so it can be a program name with args.
  738. set dummy cc; ac_word=$2
  739. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  740. echo "configure:741: checking for $ac_word" >&5
  741. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  742.   echo $ac_n "(cached) $ac_c" 1>&6
  743. else
  744.   if test -n "$CC"; then
  745.   ac_cv_prog_CC="$CC" # Let the user override the test.
  746. else
  747.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  748.   ac_prog_rejected=no
  749.   for ac_dir in $PATH; do
  750.     test -z "$ac_dir" && ac_dir=.
  751.     if test -f $ac_dir/$ac_word; then
  752.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  753.         ac_prog_rejected=yes
  754.     continue
  755.       fi
  756.       ac_cv_prog_CC="cc"
  757.       break
  758.     fi
  759.   done
  760.   IFS="$ac_save_ifs"
  761. if test $ac_prog_rejected = yes; then
  762.   # We found a bogon in the path, so make sure we never use it.
  763.   set dummy $ac_cv_prog_CC
  764.   shift
  765.   if test $# -gt 0; then
  766.     # We chose a different compiler from the bogus one.
  767.     # However, it has the same basename, so the bogon will be chosen
  768.     # first if we set CC to just the basename; use the full file name.
  769.     shift
  770.     set dummy "$ac_dir/$ac_word" "$@"
  771.     shift
  772.     ac_cv_prog_CC="$@"
  773.   fi
  774. fi
  775. fi
  776. fi
  777. CC="$ac_cv_prog_CC"
  778. if test -n "$CC"; then
  779.   echo "$ac_t""$CC" 1>&6
  780. else
  781.   echo "$ac_t""no" 1>&6
  782. fi
  783.  
  784. fi
  785. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  786.  
  787. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  788. echo "configure:789: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  789.  
  790. ac_ext=c
  791. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  792. ac_cpp='$CPP $CPPFLAGS'
  793. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  794. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  795. cross_compiling=$ac_cv_prog_cc_cross
  796.  
  797. cat > conftest.$ac_ext <<EOF
  798. #line 799 "configure"
  799. #include "confdefs.h"
  800. main(){return(0);}
  801. EOF
  802. if { (eval echo configure:803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  803.   ac_cv_prog_cc_works=yes
  804.   # If we can't run a trivial program, we are probably using a cross compiler.
  805.   if (./conftest; exit) 2>/dev/null; then
  806.     ac_cv_prog_cc_cross=no
  807.   else
  808.     ac_cv_prog_cc_cross=yes
  809.   fi
  810. else
  811.   echo "configure: failed program was:" >&5
  812.   cat conftest.$ac_ext >&5
  813.   ac_cv_prog_cc_works=no
  814. fi
  815. rm -fr conftest*
  816.  
  817. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  818. if test $ac_cv_prog_cc_works = no; then
  819.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  820. fi
  821. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  822. echo "configure:823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  823. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  824. cross_compiling=$ac_cv_prog_cc_cross
  825.  
  826. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  827. echo "configure:828: checking whether we are using GNU C" >&5
  828. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  829.   echo $ac_n "(cached) $ac_c" 1>&6
  830. else
  831.   cat > conftest.c <<EOF
  832. #ifdef __GNUC__
  833.   yes;
  834. #endif
  835. EOF
  836. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  837.   ac_cv_prog_gcc=yes
  838. else
  839.   ac_cv_prog_gcc=no
  840. fi
  841. fi
  842.  
  843. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  844.  
  845. if test $ac_cv_prog_gcc = yes; then
  846.   GCC=yes
  847.   ac_test_CFLAGS="${CFLAGS+set}"
  848.   ac_save_CFLAGS="$CFLAGS"
  849.   CFLAGS=
  850.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  851. echo "configure:852: checking whether ${CC-cc} accepts -g" >&5
  852. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  853.   echo $ac_n "(cached) $ac_c" 1>&6
  854. else
  855.   echo 'void f(){}' > conftest.c
  856. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  857.   ac_cv_prog_cc_g=yes
  858. else
  859.   ac_cv_prog_cc_g=no
  860. fi
  861. rm -f conftest*
  862.  
  863. fi
  864.  
  865. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  866.   if test "$ac_test_CFLAGS" = set; then
  867.     CFLAGS="$ac_save_CFLAGS"
  868.   elif test $ac_cv_prog_cc_g = yes; then
  869.     CFLAGS="-g -O2"
  870.   else
  871.     CFLAGS="-O2"
  872.   fi
  873. else
  874.   GCC=
  875.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  876. fi
  877. if test "$CC" = "mwcc"; then
  878.   CC="mwcc -I- -I. -I/gg/include -L/gg/lib -opt global -nodup"
  879.   ARFLAGS="-xml -o"
  880.   AR="mwld"
  881.   RANLIB="true"
  882. elif test "$CC" = "bcc"; then
  883.   ARFLAGS="-xml -o"
  884.   AR="mwld"
  885.   RANLIB="true"
  886. else
  887.   ARFLAGS="cr"
  888. fi
  889.  
  890. # Find a good install program.  We prefer a C program (faster),
  891. # so one script is as good as another.  But avoid the broken or
  892. # incompatible versions:
  893. # SysV /etc/install, /usr/sbin/install
  894. # SunOS /usr/etc/install
  895. # IRIX /sbin/install
  896. # AIX /bin/install
  897. # AmigaOS /c/install
  898. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  899. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  900. # ./install, which can be erroneously created by make from ./install.sh.
  901. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  902. echo "configure:903: checking for a BSD compatible install" >&5
  903. if test -z "$INSTALL"; then
  904. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  905.   echo $ac_n "(cached) $ac_c" 1>&6
  906. else
  907.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  908.   for ac_dir in $PATH; do
  909.     # Account for people who put trailing slashes in PATH elements.
  910.     case "$ac_dir/" in
  911.     /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  912.     *)
  913.       # OSF1 and SCO ODT 3.0 have their own names for install.
  914.       for ac_prog in ginstall installbsd scoinst install; do
  915.         if test -f $ac_dir/$ac_prog; then
  916.       if test $ac_prog = install &&
  917.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  918.         # AIX install.  It has an incompatible calling convention.
  919.         # OSF/1 installbsd also uses dspmsg, but is usable.
  920.         :
  921.       else
  922.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  923.         break 2
  924.       fi
  925.     fi
  926.       done
  927.       ;;
  928.     esac
  929.   done
  930.   IFS="$ac_save_IFS"
  931.  
  932. fi
  933.   if test "${ac_cv_path_install+set}" = set; then
  934.     INSTALL="$ac_cv_path_install"
  935.   else
  936.     # As a last resort, use the slow shell script.  We don't cache a
  937.     # path for INSTALL within a source directory, because that will
  938.     # break other packages using the cache if that directory is
  939.     # removed, or if the path is relative.
  940.     INSTALL="$ac_install_sh"
  941.   fi
  942. fi
  943. echo "$ac_t""$INSTALL" 1>&6
  944.  
  945. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  946. # It thinks the first close brace ends the variable substitution.
  947. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  948.  
  949. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  950.  
  951. # Extract the first word of "ranlib", so it can be a program name with args.
  952. set dummy ranlib; ac_word=$2
  953. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  954. echo "configure:955: checking for $ac_word" >&5
  955. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  956.   echo $ac_n "(cached) $ac_c" 1>&6
  957. else
  958.   if test -n "$RANLIB"; then
  959.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  960. else
  961.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  962.   for ac_dir in $PATH; do
  963.     test -z "$ac_dir" && ac_dir=.
  964.     if test -f $ac_dir/$ac_word; then
  965.       ac_cv_prog_RANLIB="ranlib"
  966.       break
  967.     fi
  968.   done
  969.   IFS="$ac_save_ifs"
  970.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  971. fi
  972. fi
  973. RANLIB="$ac_cv_prog_RANLIB"
  974. if test -n "$RANLIB"; then
  975.   echo "$ac_t""$RANLIB" 1>&6
  976. else
  977.   echo "$ac_t""no" 1>&6
  978. fi
  979.  
  980. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  981. echo "configure:982: checking whether ${MAKE-make} sets \${MAKE}" >&5
  982. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  983. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  984.   echo $ac_n "(cached) $ac_c" 1>&6
  985. else
  986.   cat > conftestmake <<\EOF
  987. all:
  988.     @echo 'ac_maketemp="${MAKE}"'
  989. EOF
  990. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  991. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  992. if test -n "$ac_maketemp"; then
  993.   eval ac_cv_prog_make_${ac_make}_set=yes
  994. else
  995.   eval ac_cv_prog_make_${ac_make}_set=no
  996. fi
  997. rm -f conftestmake
  998. fi
  999. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1000.   echo "$ac_t""yes" 1>&6
  1001.   SET_MAKE=
  1002. else
  1003.   echo "$ac_t""no" 1>&6
  1004.   SET_MAKE="MAKE=${MAKE-make}"
  1005. fi
  1006.  
  1007. # Extract the first word of "ld", so it can be a program name with args.
  1008. set dummy ld; ac_word=$2
  1009. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1010. echo "configure:1011: checking for $ac_word" >&5
  1011. if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
  1012.   echo $ac_n "(cached) $ac_c" 1>&6
  1013. else
  1014.   case "$LD" in
  1015.   /*)
  1016.   ac_cv_path_LD="$LD" # Let the user override the test with a path.
  1017.   ;;
  1018.   *)
  1019.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1020.   for ac_dir in $PATH; do
  1021.     test -z "$ac_dir" && ac_dir=.
  1022.     if test -f $ac_dir/$ac_word; then
  1023.       ac_cv_path_LD="$ac_dir/$ac_word"
  1024.       break
  1025.     fi
  1026.   done
  1027.   IFS="$ac_save_ifs"
  1028.   test -z "$ac_cv_path_LD" && ac_cv_path_LD="@CC@"
  1029.   ;;
  1030. esac
  1031. fi
  1032. LD="$ac_cv_path_LD"
  1033. if test -n "$LD"; then
  1034.   echo "$ac_t""$LD" 1>&6
  1035. else
  1036.   echo "$ac_t""no" 1>&6
  1037. fi
  1038.  
  1039. # Extract the first word of "as", so it can be a program name with args.
  1040. set dummy as; ac_word=$2
  1041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1042. echo "configure:1043: checking for $ac_word" >&5
  1043. if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
  1044.   echo $ac_n "(cached) $ac_c" 1>&6
  1045. else
  1046.   case "$AS" in
  1047.   /*)
  1048.   ac_cv_path_AS="$AS" # Let the user override the test with a path.
  1049.   ;;
  1050.   *)
  1051.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1052.   for ac_dir in $PATH; do
  1053.     test -z "$ac_dir" && ac_dir=.
  1054.     if test -f $ac_dir/$ac_word; then
  1055.       ac_cv_path_AS="$ac_dir/$ac_word"
  1056.       break
  1057.     fi
  1058.   done
  1059.   IFS="$ac_save_ifs"
  1060.   test -z "$ac_cv_path_AS" && ac_cv_path_AS="@CC@"
  1061.   ;;
  1062. esac
  1063. fi
  1064. AS="$ac_cv_path_AS"
  1065. if test -n "$AS"; then
  1066.   echo "$ac_t""$AS" 1>&6
  1067. else
  1068.   echo "$ac_t""no" 1>&6
  1069. fi
  1070.  
  1071. # Extract the first word of "ar", so it can be a program name with args.
  1072. set dummy ar; ac_word=$2
  1073. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1074. echo "configure:1075: checking for $ac_word" >&5
  1075. if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
  1076.   echo $ac_n "(cached) $ac_c" 1>&6
  1077. else
  1078.   case "$AR" in
  1079.   /*)
  1080.   ac_cv_path_AR="$AR" # Let the user override the test with a path.
  1081.   ;;
  1082.   *)
  1083.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1084.   for ac_dir in $PATH; do
  1085.     test -z "$ac_dir" && ac_dir=.
  1086.     if test -f $ac_dir/$ac_word; then
  1087.       ac_cv_path_AR="$ac_dir/$ac_word"
  1088.       break
  1089.     fi
  1090.   done
  1091.   IFS="$ac_save_ifs"
  1092.   test -z "$ac_cv_path_AR" && ac_cv_path_AR="echo"
  1093.   ;;
  1094. esac
  1095. fi
  1096. AR="$ac_cv_path_AR"
  1097. if test -n "$AR"; then
  1098.   echo "$ac_t""$AR" 1>&6
  1099. else
  1100.   echo "$ac_t""no" 1>&6
  1101. fi
  1102.  
  1103. # Extract the first word of "tar", so it can be a program name with args.
  1104. set dummy tar; ac_word=$2
  1105. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1106. echo "configure:1107: checking for $ac_word" >&5
  1107. if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
  1108.   echo $ac_n "(cached) $ac_c" 1>&6
  1109. else
  1110.   case "$TAR" in
  1111.   /*)
  1112.   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  1113.   ;;
  1114.   *)
  1115.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1116.   for ac_dir in $PATH; do
  1117.     test -z "$ac_dir" && ac_dir=.
  1118.     if test -f $ac_dir/$ac_word; then
  1119.       ac_cv_path_TAR="$ac_dir/$ac_word"
  1120.       break
  1121.     fi
  1122.   done
  1123.   IFS="$ac_save_ifs"
  1124.   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="echo"
  1125.   ;;
  1126. esac
  1127. fi
  1128. TAR="$ac_cv_path_TAR"
  1129. if test -n "$TAR"; then
  1130.   echo "$ac_t""$TAR" 1>&6
  1131. else
  1132.   echo "$ac_t""no" 1>&6
  1133. fi
  1134.  
  1135. # Extract the first word of "gzip", so it can be a program name with args.
  1136. set dummy gzip; ac_word=$2
  1137. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1138. echo "configure:1139: checking for $ac_word" >&5
  1139. if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
  1140.   echo $ac_n "(cached) $ac_c" 1>&6
  1141. else
  1142.   case "$GZIP" in
  1143.   /*)
  1144.   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
  1145.   ;;
  1146.   *)
  1147.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1148.   for ac_dir in $PATH; do
  1149.     test -z "$ac_dir" && ac_dir=.
  1150.     if test -f $ac_dir/$ac_word; then
  1151.       ac_cv_path_GZIP="$ac_dir/$ac_word"
  1152.       break
  1153.     fi
  1154.   done
  1155.   IFS="$ac_save_ifs"
  1156.   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo"
  1157.   ;;
  1158. esac
  1159. fi
  1160. GZIP="$ac_cv_path_GZIP"
  1161. if test -n "$GZIP"; then
  1162.   echo "$ac_t""$GZIP" 1>&6
  1163. else
  1164.   echo "$ac_t""no" 1>&6
  1165. fi
  1166.  
  1167. # Extract the first word of "genproto", so it can be a program name with args.
  1168. set dummy genproto; ac_word=$2
  1169. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1170. echo "configure:1171: checking for $ac_word" >&5
  1171. if eval "test \"`echo '$''{'ac_cv_path_GPROTO'+set}'`\" = set"; then
  1172.   echo $ac_n "(cached) $ac_c" 1>&6
  1173. else
  1174.   case "$GPROTO" in
  1175.   /*)
  1176.   ac_cv_path_GPROTO="$GPROTO" # Let the user override the test with a path.
  1177.   ;;
  1178.   *)
  1179.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1180.   for ac_dir in $PATH; do
  1181.     test -z "$ac_dir" && ac_dir=.
  1182.     if test -f $ac_dir/$ac_word; then
  1183.       ac_cv_path_GPROTO="$ac_dir/$ac_word"
  1184.       break
  1185.     fi
  1186.   done
  1187.   IFS="$ac_save_ifs"
  1188.   test -z "$ac_cv_path_GPROTO" && ac_cv_path_GPROTO="echo"
  1189.   ;;
  1190. esac
  1191. fi
  1192. GPROTO="$ac_cv_path_GPROTO"
  1193. if test -n "$GPROTO"; then
  1194.   echo "$ac_t""$GPROTO" 1>&6
  1195. else
  1196.   echo "$ac_t""no" 1>&6
  1197. fi
  1198.  
  1199. # Extract the first word of "makedepend", so it can be a program name with args.
  1200. set dummy makedepend; ac_word=$2
  1201. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1202. echo "configure:1203: checking for $ac_word" >&5
  1203. if eval "test \"`echo '$''{'ac_cv_path_MKD'+set}'`\" = set"; then
  1204.   echo $ac_n "(cached) $ac_c" 1>&6
  1205. else
  1206.   case "$MKD" in
  1207.   /*)
  1208.   ac_cv_path_MKD="$MKD" # Let the user override the test with a path.
  1209.   ;;
  1210.   *)
  1211.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1212.   for ac_dir in $PATH; do
  1213.     test -z "$ac_dir" && ac_dir=.
  1214.     if test -f $ac_dir/$ac_word; then
  1215.       ac_cv_path_MKD="$ac_dir/$ac_word"
  1216.       break
  1217.     fi
  1218.   done
  1219.   IFS="$ac_save_ifs"
  1220.   test -z "$ac_cv_path_MKD" && ac_cv_path_MKD="echo"
  1221.   ;;
  1222. esac
  1223. fi
  1224. MKD="$ac_cv_path_MKD"
  1225. if test -n "$MKD"; then
  1226.   echo "$ac_t""$MKD" 1>&6
  1227. else
  1228.   echo "$ac_t""no" 1>&6
  1229. fi
  1230.  
  1231. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1232. echo "configure:1233: checking how to run the C preprocessor" >&5
  1233. # On Suns, sometimes $CPP names a directory.
  1234. if test -n "$CPP" && test -d "$CPP"; then
  1235.   CPP=
  1236. fi
  1237. if test -z "$CPP"; then
  1238. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1239.   echo $ac_n "(cached) $ac_c" 1>&6
  1240. else
  1241.     # This must be in double quotes, not single quotes, because CPP may get
  1242.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1243.   CPP="${CC-cc} -E"
  1244.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1245.   # not just through cpp.
  1246.   cat > conftest.$ac_ext <<EOF
  1247. #line 1248 "configure"
  1248. #include "confdefs.h"
  1249. #include <assert.h>
  1250. Syntax Error
  1251. EOF
  1252. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1253. { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1254. ac_err=`grep -v '^ *+' conftest.out`
  1255. if test -z "$ac_err"; then
  1256.   :
  1257. else
  1258.   echo "$ac_err" >&5
  1259.   echo "configure: failed program was:" >&5
  1260.   cat conftest.$ac_ext >&5
  1261.   rm -rf conftest*
  1262.   CPP="${CC-cc} -E -traditional-cpp"
  1263.   cat > conftest.$ac_ext <<EOF
  1264. #line 1265 "configure"
  1265. #include "confdefs.h"
  1266. #include <assert.h>
  1267. Syntax Error
  1268. EOF
  1269. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1270. { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1271. ac_err=`grep -v '^ *+' conftest.out`
  1272. if test -z "$ac_err"; then
  1273.   :
  1274. else
  1275.   echo "$ac_err" >&5
  1276.   echo "configure: failed program was:" >&5
  1277.   cat conftest.$ac_ext >&5
  1278.   rm -rf conftest*
  1279.   CPP=/lib/cpp
  1280. fi
  1281. rm -f conftest*
  1282. fi
  1283. rm -f conftest*
  1284.   ac_cv_prog_CPP="$CPP"
  1285. fi
  1286.   CPP="$ac_cv_prog_CPP"
  1287. else
  1288.   ac_cv_prog_CPP="$CPP"
  1289. fi
  1290. echo "$ac_t""$CPP" 1>&6
  1291.  
  1292. ac_safe=`echo "sys/stat.h" | sed 'y%./+-%__p_%'`
  1293. echo $ac_n "checking for sys/stat.h""... $ac_c" 1>&6
  1294. echo "configure:1295: checking for sys/stat.h" >&5
  1295. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1296.   echo $ac_n "(cached) $ac_c" 1>&6
  1297. else
  1298.   cat > conftest.$ac_ext <<EOF
  1299. #line 1300 "configure"
  1300. #include "confdefs.h"
  1301. #include <sys/stat.h>
  1302. EOF
  1303. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1304. { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1305. ac_err=`grep -v '^ *+' conftest.out`
  1306. if test -z "$ac_err"; then
  1307.   rm -rf conftest*
  1308.   eval "ac_cv_header_$ac_safe=yes"
  1309. else
  1310.   echo "$ac_err" >&5
  1311.   echo "configure: failed program was:" >&5
  1312.   cat conftest.$ac_ext >&5
  1313.   rm -rf conftest*
  1314.   eval "ac_cv_header_$ac_safe=no"
  1315. fi
  1316. rm -f conftest*
  1317. fi
  1318. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1319.   echo "$ac_t""yes" 1>&6
  1320.   :
  1321. else
  1322.   echo "$ac_t""no" 1>&6
  1323. fi
  1324.  
  1325. ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
  1326. echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
  1327. echo "configure:1328: checking for jpeglib.h" >&5
  1328. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1329.   echo $ac_n "(cached) $ac_c" 1>&6
  1330. else
  1331.   cat > conftest.$ac_ext <<EOF
  1332. #line 1333 "configure"
  1333. #include "confdefs.h"
  1334. #include <jpeglib.h>
  1335. EOF
  1336. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1337. { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1338. ac_err=`grep -v '^ *+' conftest.out`
  1339. if test -z "$ac_err"; then
  1340.   rm -rf conftest*
  1341.   eval "ac_cv_header_$ac_safe=yes"
  1342. else
  1343.   echo "$ac_err" >&5
  1344.   echo "configure: failed program was:" >&5
  1345.   cat conftest.$ac_ext >&5
  1346.   rm -rf conftest*
  1347.   eval "ac_cv_header_$ac_safe=no"
  1348. fi
  1349. rm -f conftest*
  1350. fi
  1351. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1352.   echo "$ac_t""yes" 1>&6
  1353.   :
  1354. else
  1355.   echo "$ac_t""no" 1>&6
  1356. fi
  1357.  
  1358. ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  1359. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  1360. echo "configure:1361: checking for png.h" >&5
  1361. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1362.   echo $ac_n "(cached) $ac_c" 1>&6
  1363. else
  1364.   cat > conftest.$ac_ext <<EOF
  1365. #line 1366 "configure"
  1366. #include "confdefs.h"
  1367. #include <png.h>
  1368. EOF
  1369. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1370. { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1371. ac_err=`grep -v '^ *+' conftest.out`
  1372. if test -z "$ac_err"; then
  1373.   rm -rf conftest*
  1374.   eval "ac_cv_header_$ac_safe=yes"
  1375. else
  1376.   echo "$ac_err" >&5
  1377.   echo "configure: failed program was:" >&5
  1378.   cat conftest.$ac_ext >&5
  1379.   rm -rf conftest*
  1380.   eval "ac_cv_header_$ac_safe=no"
  1381. fi
  1382. rm -f conftest*
  1383. fi
  1384. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1385.   echo "$ac_t""yes" 1>&6
  1386.   :
  1387. else
  1388.   echo "$ac_t""no" 1>&6
  1389. fi
  1390.  
  1391. ac_safe=`echo "math.h" | sed 'y%./+-%__p_%'`
  1392. echo $ac_n "checking for math.h""... $ac_c" 1>&6
  1393. echo "configure:1394: checking for math.h" >&5
  1394. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1395.   echo $ac_n "(cached) $ac_c" 1>&6
  1396. else
  1397.   cat > conftest.$ac_ext <<EOF
  1398. #line 1399 "configure"
  1399. #include "confdefs.h"
  1400. #include <math.h>
  1401. EOF
  1402. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1403. { (eval echo configure:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1404. ac_err=`grep -v '^ *+' conftest.out`
  1405. if test -z "$ac_err"; then
  1406.   rm -rf conftest*
  1407.   eval "ac_cv_header_$ac_safe=yes"
  1408. else
  1409.   echo "$ac_err" >&5
  1410.   echo "configure: failed program was:" >&5
  1411.   cat conftest.$ac_ext >&5
  1412.   rm -rf conftest*
  1413.   eval "ac_cv_header_$ac_safe=no"
  1414. fi
  1415. rm -f conftest*
  1416. fi
  1417. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1418.   echo "$ac_t""yes" 1>&6
  1419.   :
  1420. else
  1421.   echo "$ac_t""no" 1>&6
  1422. fi
  1423.  
  1424. ac_safe=`echo "setjmp.h" | sed 'y%./+-%__p_%'`
  1425. echo $ac_n "checking for setjmp.h""... $ac_c" 1>&6
  1426. echo "configure:1427: checking for setjmp.h" >&5
  1427. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1428.   echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430.   cat > conftest.$ac_ext <<EOF
  1431. #line 1432 "configure"
  1432. #include "confdefs.h"
  1433. #include <setjmp.h>
  1434. EOF
  1435. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1436. { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1437. ac_err=`grep -v '^ *+' conftest.out`
  1438. if test -z "$ac_err"; then
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_header_$ac_safe=yes"
  1441. else
  1442.   echo "$ac_err" >&5
  1443.   echo "configure: failed program was:" >&5
  1444.   cat conftest.$ac_ext >&5
  1445.   rm -rf conftest*
  1446.   eval "ac_cv_header_$ac_safe=no"
  1447. fi
  1448. rm -f conftest*
  1449. fi
  1450. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1451.   echo "$ac_t""yes" 1>&6
  1452.   :
  1453. else
  1454.   echo "$ac_t""no" 1>&6
  1455. fi
  1456.  
  1457. ac_safe=`echo "stdio.h" | sed 'y%./+-%__p_%'`
  1458. echo $ac_n "checking for stdio.h""... $ac_c" 1>&6
  1459. echo "configure:1460: checking for stdio.h" >&5
  1460. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1461.   echo $ac_n "(cached) $ac_c" 1>&6
  1462. else
  1463.   cat > conftest.$ac_ext <<EOF
  1464. #line 1465 "configure"
  1465. #include "confdefs.h"
  1466. #include <stdio.h>
  1467. EOF
  1468. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1469. { (eval echo configure:1470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1470. ac_err=`grep -v '^ *+' conftest.out`
  1471. if test -z "$ac_err"; then
  1472.   rm -rf conftest*
  1473.   eval "ac_cv_header_$ac_safe=yes"
  1474. else
  1475.   echo "$ac_err" >&5
  1476.   echo "configure: failed program was:" >&5
  1477.   cat conftest.$ac_ext >&5
  1478.   rm -rf conftest*
  1479.   eval "ac_cv_header_$ac_safe=no"
  1480. fi
  1481. rm -f conftest*
  1482. fi
  1483. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1484.   echo "$ac_t""yes" 1>&6
  1485.   :
  1486. else
  1487.   echo "$ac_t""no" 1>&6
  1488. fi
  1489.  
  1490. ac_header_dirent=no
  1491. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1492. do
  1493. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1494. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1495. echo "configure:1496: checking for $ac_hdr that defines DIR" >&5
  1496. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1497.   echo $ac_n "(cached) $ac_c" 1>&6
  1498. else
  1499.   cat > conftest.$ac_ext <<EOF
  1500. #line 1501 "configure"
  1501. #include "confdefs.h"
  1502. #include <sys/types.h>
  1503. #include <$ac_hdr>
  1504. int main() {
  1505. DIR *dirp = 0;
  1506. ; return 0; }
  1507. EOF
  1508. if { (eval echo configure:1509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1509.   rm -rf conftest*
  1510.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1511. else
  1512.   echo "configure: failed program was:" >&5
  1513.   cat conftest.$ac_ext >&5
  1514.   rm -rf conftest*
  1515.   eval "ac_cv_header_dirent_$ac_safe=no"
  1516. fi
  1517. rm -f conftest*
  1518. fi
  1519. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1520.   echo "$ac_t""yes" 1>&6
  1521.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1522.   cat >> confdefs.h <<EOF
  1523. #define $ac_tr_hdr 1
  1524. EOF
  1525.  ac_header_dirent=$ac_hdr; break
  1526. else
  1527.   echo "$ac_t""no" 1>&6
  1528. fi
  1529. done
  1530. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1531. if test $ac_header_dirent = dirent.h; then
  1532. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1533. echo "configure:1534: checking for opendir in -ldir" >&5
  1534. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1535. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1536.   echo $ac_n "(cached) $ac_c" 1>&6
  1537. else
  1538.   ac_save_LIBS="$LIBS"
  1539. LIBS="-ldir  $LIBS"
  1540. cat > conftest.$ac_ext <<EOF
  1541. #line 1542 "configure"
  1542. #include "confdefs.h"
  1543. /* Override any gcc2 internal prototype to avoid an error.  */
  1544. /* We use char because int might match the return type of a gcc2
  1545.     builtin and then its argument prototype would still apply.  */
  1546. char opendir();
  1547.  
  1548. int main() {
  1549. opendir()
  1550. ; return 0; }
  1551. EOF
  1552. if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1553.   rm -rf conftest*
  1554.   eval "ac_cv_lib_$ac_lib_var=yes"
  1555. else
  1556.   echo "configure: failed program was:" >&5
  1557.   cat conftest.$ac_ext >&5
  1558.   rm -rf conftest*
  1559.   eval "ac_cv_lib_$ac_lib_var=no"
  1560. fi
  1561. rm -f conftest*
  1562. LIBS="$ac_save_LIBS"
  1563.  
  1564. fi
  1565. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1566.   echo "$ac_t""yes" 1>&6
  1567.   LIBS="$LIBS -ldir"
  1568. else
  1569.   echo "$ac_t""no" 1>&6
  1570. fi
  1571.  
  1572. else
  1573. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1574. echo "configure:1575: checking for opendir in -lx" >&5
  1575. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1576. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1577.   echo $ac_n "(cached) $ac_c" 1>&6
  1578. else
  1579.   ac_save_LIBS="$LIBS"
  1580. LIBS="-lx  $LIBS"
  1581. cat > conftest.$ac_ext <<EOF
  1582. #line 1583 "configure"
  1583. #include "confdefs.h"
  1584. /* Override any gcc2 internal prototype to avoid an error.  */
  1585. /* We use char because int might match the return type of a gcc2
  1586.     builtin and then its argument prototype would still apply.  */
  1587. char opendir();
  1588.  
  1589. int main() {
  1590. opendir()
  1591. ; return 0; }
  1592. EOF
  1593. if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1594.   rm -rf conftest*
  1595.   eval "ac_cv_lib_$ac_lib_var=yes"
  1596. else
  1597.   echo "configure: failed program was:" >&5
  1598.   cat conftest.$ac_ext >&5
  1599.   rm -rf conftest*
  1600.   eval "ac_cv_lib_$ac_lib_var=no"
  1601. fi
  1602. rm -f conftest*
  1603. LIBS="$ac_save_LIBS"
  1604.  
  1605. fi
  1606. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1607.   echo "$ac_t""yes" 1>&6
  1608.   LIBS="$LIBS -lx"
  1609. else
  1610.   echo "$ac_t""no" 1>&6
  1611. fi
  1612.  
  1613. fi
  1614.  
  1615. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1616. echo "configure:1617: checking for ANSI C header files" >&5
  1617. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1618.   echo $ac_n "(cached) $ac_c" 1>&6
  1619. else
  1620.   cat > conftest.$ac_ext <<EOF
  1621. #line 1622 "configure"
  1622. #include "confdefs.h"
  1623. #include <stdlib.h>
  1624. #include <stdarg.h>
  1625. #include <string.h>
  1626. #include <float.h>
  1627. EOF
  1628. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1629. { (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1630. ac_err=`grep -v '^ *+' conftest.out`
  1631. if test -z "$ac_err"; then
  1632.   rm -rf conftest*
  1633.   ac_cv_header_stdc=yes
  1634. else
  1635.   echo "$ac_err" >&5
  1636.   echo "configure: failed program was:" >&5
  1637.   cat conftest.$ac_ext >&5
  1638.   rm -rf conftest*
  1639.   ac_cv_header_stdc=no
  1640. fi
  1641. rm -f conftest*
  1642.  
  1643. if test $ac_cv_header_stdc = yes; then
  1644.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1645. cat > conftest.$ac_ext <<EOF
  1646. #line 1647 "configure"
  1647. #include "confdefs.h"
  1648. #include <string.h>
  1649. EOF
  1650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1651.   egrep "memchr" >/dev/null 2>&1; then
  1652.   :
  1653. else
  1654.   rm -rf conftest*
  1655.   ac_cv_header_stdc=no
  1656. fi
  1657. rm -f conftest*
  1658.  
  1659. fi
  1660.  
  1661. if test $ac_cv_header_stdc = yes; then
  1662.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1663. cat > conftest.$ac_ext <<EOF
  1664. #line 1665 "configure"
  1665. #include "confdefs.h"
  1666. #include <stdlib.h>
  1667. EOF
  1668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1669.   egrep "free" >/dev/null 2>&1; then
  1670.   :
  1671. else
  1672.   rm -rf conftest*
  1673.   ac_cv_header_stdc=no
  1674. fi
  1675. rm -f conftest*
  1676.  
  1677. fi
  1678.  
  1679. if test $ac_cv_header_stdc = yes; then
  1680.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1681. if test "$cross_compiling" = yes; then
  1682.   :
  1683. else
  1684.   cat > conftest.$ac_ext <<EOF
  1685. #line 1686 "configure"
  1686. #include "confdefs.h"
  1687. #include <ctype.h>
  1688. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1689. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1690. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1691. int main () { int i; for (i = 0; i < 256; i++)
  1692. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1693. exit (0); }
  1694.  
  1695. EOF
  1696. if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1697. then
  1698.   :
  1699. else
  1700.   echo "configure: failed program was:" >&5
  1701.   cat conftest.$ac_ext >&5
  1702.   rm -fr conftest*
  1703.   ac_cv_header_stdc=no
  1704. fi
  1705. rm -fr conftest*
  1706. fi
  1707.  
  1708. fi
  1709. fi
  1710.  
  1711. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1712. if test $ac_cv_header_stdc = yes; then
  1713.   cat >> confdefs.h <<\EOF
  1714. #define STDC_HEADERS 1
  1715. EOF
  1716.  
  1717. fi
  1718.  
  1719. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1720. echo "configure:1721: checking for vprintf" >&5
  1721. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1722.   echo $ac_n "(cached) $ac_c" 1>&6
  1723. else
  1724.   cat > conftest.$ac_ext <<EOF
  1725. #line 1726 "configure"
  1726. #include "confdefs.h"
  1727. /* System header to define __stub macros and hopefully few prototypes,
  1728.     which can conflict with char vprintf(); below.  */
  1729. #include <assert.h>
  1730. /* Override any gcc2 internal prototype to avoid an error.  */
  1731. /* We use char because int might match the return type of a gcc2
  1732.     builtin and then its argument prototype would still apply.  */
  1733. char vprintf();
  1734.  
  1735. int main() {
  1736.  
  1737. /* The GNU C library defines this for functions which it implements
  1738.     to always fail with ENOSYS.  Some functions are actually named
  1739.     something starting with __ and the normal name is an alias.  */
  1740. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  1741. choke me
  1742. #else
  1743. vprintf();
  1744. #endif
  1745.  
  1746. ; return 0; }
  1747. EOF
  1748. if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1749.   rm -rf conftest*
  1750.   eval "ac_cv_func_vprintf=yes"
  1751. else
  1752.   echo "configure: failed program was:" >&5
  1753.   cat conftest.$ac_ext >&5
  1754.   rm -rf conftest*
  1755.   eval "ac_cv_func_vprintf=no"
  1756. fi
  1757. rm -f conftest*
  1758. fi
  1759.  
  1760. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1761.   echo "$ac_t""yes" 1>&6
  1762.   cat >> confdefs.h <<\EOF
  1763. #define HAVE_VPRINTF 1
  1764. EOF
  1765.  
  1766. else
  1767.   echo "$ac_t""no" 1>&6
  1768. fi
  1769.  
  1770. if test "$ac_cv_func_vprintf" != yes; then
  1771. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1772. echo "configure:1773: checking for _doprnt" >&5
  1773. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1774.   echo $ac_n "(cached) $ac_c" 1>&6
  1775. else
  1776.   cat > conftest.$ac_ext <<EOF
  1777. #line 1778 "configure"
  1778. #include "confdefs.h"
  1779. /* System header to define __stub macros and hopefully few prototypes,
  1780.     which can conflict with char _doprnt(); below.  */
  1781. #include <assert.h>
  1782. /* Override any gcc2 internal prototype to avoid an error.  */
  1783. /* We use char because int might match the return type of a gcc2
  1784.     builtin and then its argument prototype would still apply.  */
  1785. char _doprnt();
  1786.  
  1787. int main() {
  1788.  
  1789. /* The GNU C library defines this for functions which it implements
  1790.     to always fail with ENOSYS.  Some functions are actually named
  1791.     something starting with __ and the normal name is an alias.  */
  1792. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  1793. choke me
  1794. #else
  1795. _doprnt();
  1796. #endif
  1797.  
  1798. ; return 0; }
  1799. EOF
  1800. if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1801.   rm -rf conftest*
  1802.   eval "ac_cv_func__doprnt=yes"
  1803. else
  1804.   echo "configure: failed program was:" >&5
  1805.   cat conftest.$ac_ext >&5
  1806.   rm -rf conftest*
  1807.   eval "ac_cv_func__doprnt=no"
  1808. fi
  1809. rm -f conftest*
  1810. fi
  1811.  
  1812. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1813.   echo "$ac_t""yes" 1>&6
  1814.   cat >> confdefs.h <<\EOF
  1815. #define HAVE_DOPRNT 1
  1816. EOF
  1817.  
  1818. else
  1819.   echo "$ac_t""no" 1>&6
  1820. fi
  1821.  
  1822. fi
  1823.  
  1824. for ac_func in mkdir strtol
  1825. do
  1826. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1827. echo "configure:1828: checking for $ac_func" >&5
  1828. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1829.   echo $ac_n "(cached) $ac_c" 1>&6
  1830. else
  1831.   cat > conftest.$ac_ext <<EOF
  1832. #line 1833 "configure"
  1833. #include "confdefs.h"
  1834. /* System header to define __stub macros and hopefully few prototypes,
  1835.     which can conflict with char $ac_func(); below.  */
  1836. #include <assert.h>
  1837. /* Override any gcc2 internal prototype to avoid an error.  */
  1838. /* We use char because int might match the return type of a gcc2
  1839.     builtin and then its argument prototype would still apply.  */
  1840. char $ac_func();
  1841.  
  1842. int main() {
  1843.  
  1844. /* The GNU C library defines this for functions which it implements
  1845.     to always fail with ENOSYS.  Some functions are actually named
  1846.     something starting with __ and the normal name is an alias.  */
  1847. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1848. choke me
  1849. #else
  1850. $ac_func();
  1851. #endif
  1852.  
  1853. ; return 0; }
  1854. EOF
  1855. if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1856.   rm -rf conftest*
  1857.   eval "ac_cv_func_$ac_func=yes"
  1858. else
  1859.   echo "configure: failed program was:" >&5
  1860.   cat conftest.$ac_ext >&5
  1861.   rm -rf conftest*
  1862.   eval "ac_cv_func_$ac_func=no"
  1863. fi
  1864. rm -f conftest*
  1865. fi
  1866.  
  1867. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1868.   echo "$ac_t""yes" 1>&6
  1869.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1870.   cat >> confdefs.h <<EOF
  1871. #define $ac_tr_func 1
  1872. EOF
  1873.  
  1874. else
  1875.   echo "$ac_t""no" 1>&6
  1876. fi
  1877. done
  1878.  
  1879. echo $ac_n "checking for png_create_write_struct in -lpng""... $ac_c" 1>&6
  1880. echo "configure:1881: checking for png_create_write_struct in -lpng" >&5
  1881. ac_lib_var=`echo png'_'png_create_write_struct | sed 'y%./+-%__p_%'`
  1882. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1883.   echo $ac_n "(cached) $ac_c" 1>&6
  1884. else
  1885.   ac_save_LIBS="$LIBS"
  1886. LIBS="-lpng  $LIBS"
  1887. cat > conftest.$ac_ext <<EOF
  1888. #line 1889 "configure"
  1889. #include "confdefs.h"
  1890. /* Override any gcc2 internal prototype to avoid an error.  */
  1891. /* We use char because int might match the return type of a gcc2
  1892.     builtin and then its argument prototype would still apply.  */
  1893. char png_create_write_struct();
  1894.  
  1895. int main() {
  1896. png_create_write_struct()
  1897. ; return 0; }
  1898. EOF
  1899. if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1900.   rm -rf conftest*
  1901.   eval "ac_cv_lib_$ac_lib_var=yes"
  1902. else
  1903.   echo "configure: failed program was:" >&5
  1904.   cat conftest.$ac_ext >&5
  1905.   rm -rf conftest*
  1906.   eval "ac_cv_lib_$ac_lib_var=no"
  1907. fi
  1908. rm -f conftest*
  1909. LIBS="$ac_save_LIBS"
  1910.  
  1911. fi
  1912. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1913.   echo "$ac_t""yes" 1>&6
  1914.     ac_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1915.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1916.   cat >> confdefs.h <<EOF
  1917. #define $ac_tr_lib 1
  1918. EOF
  1919.  
  1920.   LIBS="-lpng $LIBS"
  1921.  
  1922. else
  1923.   echo "$ac_t""no" 1>&6
  1924. fi
  1925.  
  1926. echo $ac_n "checking for jpeg_set_quality in -ljpeg""... $ac_c" 1>&6
  1927. echo "configure:1928: checking for jpeg_set_quality in -ljpeg" >&5
  1928. ac_lib_var=`echo jpeg'_'jpeg_set_quality | sed 'y%./+-%__p_%'`
  1929. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1930.   echo $ac_n "(cached) $ac_c" 1>&6
  1931. else
  1932.   ac_save_LIBS="$LIBS"
  1933. LIBS="-ljpeg  $LIBS"
  1934. cat > conftest.$ac_ext <<EOF
  1935. #line 1936 "configure"
  1936. #include "confdefs.h"
  1937. /* Override any gcc2 internal prototype to avoid an error.  */
  1938. /* We use char because int might match the return type of a gcc2
  1939.     builtin and then its argument prototype would still apply.  */
  1940. char jpeg_set_quality();
  1941.  
  1942. int main() {
  1943. jpeg_set_quality()
  1944. ; return 0; }
  1945. EOF
  1946. if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1947.   rm -rf conftest*
  1948.   eval "ac_cv_lib_$ac_lib_var=yes"
  1949. else
  1950.   echo "configure: failed program was:" >&5
  1951.   cat conftest.$ac_ext >&5
  1952.   rm -rf conftest*
  1953.   eval "ac_cv_lib_$ac_lib_var=no"
  1954. fi
  1955. rm -f conftest*
  1956. LIBS="$ac_save_LIBS"
  1957.  
  1958. fi
  1959. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1960.   echo "$ac_t""yes" 1>&6
  1961.     ac_tr_lib=HAVE_LIB`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1962.     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1963.   cat >> confdefs.h <<EOF
  1964. #define $ac_tr_lib 1
  1965. EOF
  1966.  
  1967.   LIBS="-ljpeg $LIBS"
  1968.  
  1969. else
  1970.   echo "$ac_t""no" 1>&6
  1971. fi
  1972.  
  1973. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1974. echo "configure:1975: checking whether byte ordering is bigendian" >&5
  1975. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1976.   echo $ac_n "(cached) $ac_c" 1>&6
  1977. else
  1978.   ac_cv_c_bigendian=unknown
  1979. # See if sys/param.h defines the BYTE_ORDER macro.
  1980. cat > conftest.$ac_ext <<EOF
  1981. #line 1982 "configure"
  1982. #include "confdefs.h"
  1983. #include <sys/types.h>
  1984. #include <sys/param.h>
  1985. int main() {
  1986.  
  1987. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1988.  bogus endian macros
  1989. #endif
  1990. ; return 0; }
  1991. EOF
  1992. if { (eval echo configure:1993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1993.   rm -rf conftest*
  1994.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1995. cat > conftest.$ac_ext <<EOF
  1996. #line 1997 "configure"
  1997. #include "confdefs.h"
  1998. #include <sys/types.h>
  1999. #include <sys/param.h>
  2000. int main() {
  2001.  
  2002. #if BYTE_ORDER != BIG_ENDIAN
  2003.  not big endian
  2004. #endif
  2005. ; return 0; }
  2006. EOF
  2007. if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2008.   rm -rf conftest*
  2009.   ac_cv_c_bigendian=yes
  2010. else
  2011.   echo "configure: failed program was:" >&5
  2012.   cat conftest.$ac_ext >&5
  2013.   rm -rf conftest*
  2014.   ac_cv_c_bigendian=no
  2015. fi
  2016. rm -f conftest*
  2017. else
  2018.   echo "configure: failed program was:" >&5
  2019.   cat conftest.$ac_ext >&5
  2020. fi
  2021. rm -f conftest*
  2022. if test $ac_cv_c_bigendian = unknown; then
  2023. if test "$cross_compiling" = yes; then
  2024.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  2025. else
  2026.   cat > conftest.$ac_ext <<EOF
  2027. #line 2028 "configure"
  2028. #include "confdefs.h"
  2029. main () {
  2030.   /* Are we little or big endian?  From Harbison&Steele.  */
  2031.   union
  2032.   {
  2033.     long l;
  2034.     char c[sizeof (long)];
  2035.   } u;
  2036.   u.l = 1;
  2037.   exit (u.c[sizeof (long) - 1] == 1);
  2038. }
  2039. EOF
  2040. if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  2041. then
  2042.   ac_cv_c_bigendian=no
  2043. else
  2044.   echo "configure: failed program was:" >&5
  2045.   cat conftest.$ac_ext >&5
  2046.   rm -fr conftest*
  2047.   ac_cv_c_bigendian=yes
  2048. fi
  2049. rm -fr conftest*
  2050. fi
  2051.  
  2052. fi
  2053. fi
  2054.  
  2055. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  2056. if test $ac_cv_c_bigendian = yes; then
  2057.   cat >> confdefs.h <<\EOF
  2058. #define WORDS_BIGENDIAN 1
  2059. EOF
  2060.  
  2061. fi
  2062.  
  2063. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2064. echo "configure:2065: checking for inline" >&5
  2065. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2066.   echo $ac_n "(cached) $ac_c" 1>&6
  2067. else
  2068.   ac_cv_c_inline=no
  2069. for ac_kw in inline __inline__ __inline; do
  2070.   cat > conftest.$ac_ext <<EOF
  2071. #line 2072 "configure"
  2072. #include "confdefs.h"
  2073.  
  2074. int main() {
  2075. } $ac_kw foo() {
  2076. ; return 0; }
  2077. EOF
  2078. if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2079.   rm -rf conftest*
  2080.   ac_cv_c_inline=$ac_kw; break
  2081. else
  2082.   echo "configure: failed program was:" >&5
  2083.   cat conftest.$ac_ext >&5
  2084. fi
  2085. rm -f conftest*
  2086. done
  2087.  
  2088. fi
  2089.  
  2090. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2091. case "$ac_cv_c_inline" in
  2092.   inline | yes) ;;
  2093.   no) cat >> confdefs.h <<\EOF
  2094. #define inline 
  2095. EOF
  2096.  ;;
  2097.   *)  cat >> confdefs.h <<EOF
  2098. #define inline $ac_cv_c_inline
  2099. EOF
  2100.  ;;
  2101. esac
  2102.  
  2103. echo $ac_n "checking for long file names""... $ac_c" 1>&6
  2104. echo "configure:2105: checking for long file names" >&5
  2105. if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
  2106.   echo $ac_n "(cached) $ac_c" 1>&6
  2107. else
  2108.   ac_cv_sys_long_file_names=yes
  2109. # Test for long file names in all the places we know might matter:
  2110. #      .        the current directory, where building will happen
  2111. #      $prefix/lib    where we will be installing things
  2112. #      $exec_prefix/lib    likewise
  2113. # eval it to expand exec_prefix.
  2114. #      $TMPDIR        if set, where it might want to write temporary files
  2115. # if $TMPDIR is not set:
  2116. #      /tmp        where it might want to write temporary files
  2117. #      /var/tmp        likewise
  2118. #      /usr/tmp        likewise
  2119. if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
  2120.   ac_tmpdirs="$TMPDIR"
  2121. else
  2122.   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
  2123. fi
  2124. for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
  2125.   test -d $ac_dir || continue
  2126.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  2127.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  2128.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  2129.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  2130.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  2131.     ac_cv_sys_long_file_names=no
  2132.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2133.     break
  2134.   fi
  2135.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  2136. done
  2137. fi
  2138.  
  2139. echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
  2140. if test $ac_cv_sys_long_file_names = yes; then
  2141.   cat >> confdefs.h <<\EOF
  2142. #define HAVE_LONG_FILE_NAMES 1
  2143. EOF
  2144.  
  2145. fi
  2146.  
  2147. trap '' 1 2 15
  2148. cat > confcache <<\EOF
  2149. # This file is a shell script that caches the results of configure
  2150. # tests run on this system so they can be shared between configure
  2151. # scripts and configure runs.  It is not useful on other systems.
  2152. # If it contains results you don't want to keep, you may remove or edit it.
  2153. #
  2154. # By default, configure uses ./config.cache as the cache file,
  2155. # creating it if it does not exist already.  You can give configure
  2156. # the --cache-file=FILE option to use a different cache file; that is
  2157. # what configure does when it calls configure scripts in
  2158. # subdirectories, so they share the cache.
  2159. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2160. # config.status only pays attention to the cache file if you give it the
  2161. # --recheck option to rerun configure.
  2162. #
  2163. EOF
  2164. # The following way of writing the cache mishandles newlines in values,
  2165. # but we know of no workaround that is simple, portable, and efficient.
  2166. # So, don't put newlines in cache variables' values.
  2167. # Ultrix sh set writes to stderr and can't be redirected directly,
  2168. # and sets the high bit in the cache file unless we assign to the vars.
  2169. (set) 2>&1 |
  2170.   case `(ac_space=' '; set) 2>&1 | grep ac_space` in
  2171.   *ac_space=\ *)
  2172.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2173.     # turns \\\\ into \\, and sed turns \\ into \).
  2174.     sed -n \
  2175.       -e "s/'/'\\\\''/g" \
  2176.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2177.     ;;
  2178.   *)
  2179.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2180.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2181.     ;;
  2182.   esac >> confcache
  2183. if cmp -s $cache_file confcache; then
  2184.   :
  2185. else
  2186.   if test -w $cache_file; then
  2187.     echo "updating cache $cache_file"
  2188.     cat confcache > $cache_file
  2189.   else
  2190.     echo "not updating unwritable cache $cache_file"
  2191.   fi
  2192. fi
  2193. rm -f confcache
  2194.  
  2195. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2196.  
  2197. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2198. # Let make expand exec_prefix.
  2199. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2200.  
  2201. # Any assignment to VPATH causes Sun make to only execute
  2202. # the first set of double-colon rules, so remove it if not needed.
  2203. # If there is a colon in the path, we need to keep it.
  2204. if test "x$srcdir" = x.; then
  2205.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2206. fi
  2207.  
  2208. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2209.  
  2210. DEFS=-DHAVE_CONFIG_H
  2211.  
  2212. # Without the "./", some shells look in PATH for config.status.
  2213. : ${CONFIG_STATUS=./config.status}
  2214.  
  2215. echo creating $CONFIG_STATUS
  2216. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2217. # being executed, so just move it out of the way instead.
  2218. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2219. cat > $CONFIG_STATUS <<EOF
  2220. #! /bin/sh
  2221. # Generated automatically by configure.
  2222. # Run this file to recreate the current configuration.
  2223. # This directory was configured as follows,
  2224. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2225. #
  2226. # $0 $ac_configure_args
  2227. #
  2228. # Compiler output produced by configure, useful for debugging
  2229. # configure, is in ./config.log if it exists.
  2230.  
  2231. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2232. for ac_option
  2233. do
  2234.   case "\$ac_option" in
  2235.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2236.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2237.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2238.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2239.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  2240.     exit 0 ;;
  2241.   -help | --help | --hel | --he | --h)
  2242.     echo "\$ac_cs_usage"; exit 0 ;;
  2243.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2244.   esac
  2245. done
  2246.  
  2247. ac_given_srcdir=$srcdir
  2248. ac_given_INSTALL="$INSTALL"
  2249.  
  2250. trap 'rm -fr `echo "./Makefile 
  2251. ./src/Makefile
  2252. ./src/Makefile-rules 
  2253. ./src/libqbuild/Makefile 
  2254. ./src/libqdisplay/Makefile 
  2255. ./src/libqsys/Makefile 
  2256. ./src/libqsys/$target_cpu/Makefile 
  2257. ./src/libqsys/$target_cpu/$target_os/Makefile 
  2258. ./src/libqsys/generic.h 
  2259. ./src/libqtools/Makefile 
  2260. ./src/util/Makefile 
  2261. ./testfarm/Makefile ./src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2262. EOF
  2263. cat >> $CONFIG_STATUS <<EOF
  2264.  
  2265. # Protect against being on the right side of a sed subst in config.status.
  2266. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2267.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2268. $ac_vpsub
  2269. $extrasub
  2270. s%@CFLAGS@%$CFLAGS%g
  2271. s%@CPPFLAGS@%$CPPFLAGS%g
  2272. s%@CXXFLAGS@%$CXXFLAGS%g
  2273. s%@DEFS@%$DEFS%g
  2274. s%@LDFLAGS@%$LDFLAGS%g
  2275. s%@LIBS@%$LIBS%g
  2276. s%@exec_prefix@%$exec_prefix%g
  2277. s%@prefix@%$prefix%g
  2278. s%@program_transform_name@%$program_transform_name%g
  2279. s%@bindir@%$bindir%g
  2280. s%@sbindir@%$sbindir%g
  2281. s%@libexecdir@%$libexecdir%g
  2282. s%@datadir@%$datadir%g
  2283. s%@sysconfdir@%$sysconfdir%g
  2284. s%@sharedstatedir@%$sharedstatedir%g
  2285. s%@localstatedir@%$localstatedir%g
  2286. s%@libdir@%$libdir%g
  2287. s%@includedir@%$includedir%g
  2288. s%@oldincludedir@%$oldincludedir%g
  2289. s%@infodir@%$infodir%g
  2290. s%@guidedir@%$guidedir%g
  2291. s%@psdir@%$psdir%g
  2292. s%@dvidir@%$dvidir%g
  2293. s%@mandir@%$mandir%g
  2294. s%@host@%$host%g
  2295. s%@host_alias@%$host_alias%g
  2296. s%@host_cpu@%$host_cpu%g
  2297. s%@host_vendor@%$host_vendor%g
  2298. s%@host_os@%$host_os%g
  2299. s%@target@%$target%g
  2300. s%@target_alias@%$target_alias%g
  2301. s%@target_cpu@%$target_cpu%g
  2302. s%@target_vendor@%$target_vendor%g
  2303. s%@target_os@%$target_os%g
  2304. s%@build@%$build%g
  2305. s%@build_alias@%$build_alias%g
  2306. s%@build_cpu@%$build_cpu%g
  2307. s%@build_vendor@%$build_vendor%g
  2308. s%@build_os@%$build_os%g
  2309. s%@CC@%$CC%g
  2310. s%@ARFLAGS@%$ARFLAGS%g
  2311. s%@AR@%$AR%g
  2312. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2313. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2314. s%@RANLIB@%$RANLIB%g
  2315. s%@SET_MAKE@%$SET_MAKE%g
  2316. s%@LD@%$LD%g
  2317. s%@AS@%$AS%g
  2318. s%@TAR@%$TAR%g
  2319. s%@GZIP@%$GZIP%g
  2320. s%@GPROTO@%$GPROTO%g
  2321. s%@MKD@%$MKD%g
  2322. s%@CPP@%$CPP%g
  2323.  
  2324. CEOF
  2325. EOF
  2326.  
  2327. cat >> $CONFIG_STATUS <<\EOF
  2328.  
  2329. # Split the substitutions into bite-sized pieces for seds with
  2330. # small command number limits, like on Digital OSF/1 and HP-UX.
  2331. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2332. ac_file=1 # Number of current file.
  2333. ac_beg=1 # First line for current file.
  2334. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2335. ac_more_lines=:
  2336. ac_sed_cmds=""
  2337. while $ac_more_lines; do
  2338.   if test $ac_beg -gt 1; then
  2339.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2340.   else
  2341.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2342.   fi
  2343.   if test ! -s conftest.s$ac_file; then
  2344.     ac_more_lines=false
  2345.     rm -f conftest.s$ac_file
  2346.   else
  2347.     if test -z "$ac_sed_cmds"; then
  2348.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2349.     else
  2350.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2351.     fi
  2352.     ac_file=`expr $ac_file + 1`
  2353.     ac_beg=$ac_end
  2354.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2355.   fi
  2356. done
  2357. if test -z "$ac_sed_cmds"; then
  2358.   ac_sed_cmds=cat
  2359. fi
  2360. EOF
  2361.  
  2362. cat >> $CONFIG_STATUS <<EOF
  2363.  
  2364. CONFIG_FILES=\${CONFIG_FILES-"./Makefile 
  2365. ./src/Makefile
  2366. ./src/Makefile-rules 
  2367. ./src/libqbuild/Makefile 
  2368. ./src/libqdisplay/Makefile 
  2369. ./src/libqsys/Makefile 
  2370. ./src/libqsys/$target_cpu/Makefile 
  2371. ./src/libqsys/$target_cpu/$target_os/Makefile 
  2372. ./src/libqsys/generic.h 
  2373. ./src/libqtools/Makefile 
  2374. ./src/util/Makefile 
  2375. ./testfarm/Makefile"}
  2376. EOF
  2377. cat >> $CONFIG_STATUS <<\EOF
  2378. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2379.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2380.   case "$ac_file" in
  2381.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2382.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2383.   *) ac_file_in="${ac_file}.in" ;;
  2384.   esac
  2385.  
  2386.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2387.  
  2388.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2389.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2390.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2391.     # The file is in a subdirectory.
  2392.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2393.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2394.     # A "../" for each directory in $ac_dir_suffix.
  2395.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2396.   else
  2397.     ac_dir_suffix= ac_dots=
  2398.   fi
  2399.  
  2400.   case "$ac_given_srcdir" in
  2401.   .)  srcdir=.
  2402.       if test -z "$ac_dots"; then top_srcdir=.
  2403.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2404.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2405.   *) # Relative path.
  2406.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2407.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2408.   esac
  2409.  
  2410.   case "$ac_given_INSTALL" in
  2411.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2412.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2413.   esac
  2414.  
  2415.   echo creating "$ac_file"
  2416.   rm -f "$ac_file"
  2417.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2418.   case "$ac_file" in
  2419.   *Makefile*) ac_comsub="1i\\
  2420. # $configure_input" ;;
  2421.   *) ac_comsub= ;;
  2422.   esac
  2423.  
  2424.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2425.   sed -e "$ac_comsub
  2426. s%@configure_input@%$configure_input%g
  2427. s%@srcdir@%$srcdir%g
  2428. s%@top_srcdir@%$top_srcdir%g
  2429. s%@INSTALL@%$INSTALL%g
  2430. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2431. fi; done
  2432. rm -f conftest.s*
  2433.  
  2434. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2435. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2436. #
  2437. # ac_d sets the value in "#define NAME VALUE" lines.
  2438. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2439. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2440. ac_dC='\3'
  2441. ac_dD='%g'
  2442. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2443. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2444. ac_uB='\([     ]\)%\1#\2define\3'
  2445. ac_uC=' '
  2446. ac_uD='\4%g'
  2447. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2448. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2449. ac_eB='$%\1#\2define\3'
  2450. ac_eC=' '
  2451. ac_eD='%g'
  2452.  
  2453. if test "${CONFIG_HEADERS+set}" != set; then
  2454. EOF
  2455. cat >> $CONFIG_STATUS <<EOF
  2456.   CONFIG_HEADERS="./src/include/config.h"
  2457. EOF
  2458. cat >> $CONFIG_STATUS <<\EOF
  2459. fi
  2460. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2461.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2462.   case "$ac_file" in
  2463.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2464.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2465.   *) ac_file_in="${ac_file}.in" ;;
  2466.   esac
  2467.  
  2468.   echo creating $ac_file
  2469.  
  2470.   rm -f conftest.frag conftest.in conftest.out
  2471.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2472.   cat $ac_file_inputs > conftest.in
  2473.  
  2474. EOF
  2475.  
  2476. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2477. # the proper values into config.h.in to produce config.h.  And first:
  2478. # Protect against being on the right side of a sed subst in config.status.
  2479. # Protect against being in an unquoted here document in config.status.
  2480. rm -f conftest.vals
  2481. cat > conftest.hdr <<\EOF
  2482. s/[\\&%]/\\&/g
  2483. s%[\\$`]%\\&%g
  2484. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2485. s%ac_d%ac_u%gp
  2486. s%ac_u%ac_e%gp
  2487. EOF
  2488. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2489. rm -f conftest.hdr
  2490.  
  2491. # This sed command replaces #undef with comments.  This is necessary, for
  2492. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2493. # on some systems where configure will not decide to define it.
  2494. cat >> conftest.vals <<\EOF
  2495. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2496. EOF
  2497.  
  2498. # Break up conftest.vals because some shells have a limit on
  2499. # the size of here documents, and old seds have small limits too.
  2500.  
  2501. rm -f conftest.tail
  2502. while :
  2503. do
  2504.   ac_lines=`grep -c . conftest.vals`
  2505.   # grep -c gives empty output for an empty file on some AIX systems.
  2506.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2507.   # Write a limited-size here document to conftest.frag.
  2508.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2509.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2510.   echo 'CEOF
  2511.   sed -f conftest.frag conftest.in > conftest.out
  2512.   rm -f conftest.in
  2513.   mv conftest.out conftest.in
  2514. ' >> $CONFIG_STATUS
  2515.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2516.   rm -f conftest.vals
  2517.   mv conftest.tail conftest.vals
  2518. done
  2519. rm -f conftest.vals
  2520.  
  2521. cat >> $CONFIG_STATUS <<\EOF
  2522.   rm -f conftest.frag conftest.h
  2523.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2524.   cat conftest.in >> conftest.h
  2525.   rm -f conftest.in
  2526.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2527.     echo "$ac_file is unchanged"
  2528.     rm -f conftest.h
  2529.   else
  2530.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2531.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2532.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2533.       # The file is in a subdirectory.
  2534.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  2535.     fi
  2536.     rm -f $ac_file
  2537.     mv conftest.h $ac_file
  2538.   fi
  2539. fi; done
  2540.  
  2541. EOF
  2542. cat >> $CONFIG_STATUS <<EOF
  2543.  
  2544. EOF
  2545. cat >> $CONFIG_STATUS <<\EOF
  2546.  
  2547. exit 0
  2548. EOF
  2549. chmod +x $CONFIG_STATUS
  2550. rm -f CONFIG.STATUS.old
  2551. rm -fr confdefs* $ac_clean_files
  2552. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2553.  
  2554.